package patterns.factoryPattern;

public class ChengduXinhuashe extends BookProductor {

	@Override
	Book creator(String type) {
		if ("child".equals(type)) {
			book = new ChildBook("ChildBood", "Tom", 15f);
			book.setSellArea(new Chengdu());
		} else if ("adult".equals(type)) {
			book = new AdultBook("AdultBook", "Jepson", 26.5f);
			book.setSellArea(new Chengdu());
		}
		return book;
	}
}
